(function(){
    var name = 'world';
    var hello = function(){
        alert('hello ' + name);
    }
    window.first = hello;
})();